#include<stdio.h>
int main()
{
	double e;
	int i,n,d;
	scanf("%d",&n);
	for (i=1;i<=n;i++)
	{
		d*=i;
		e+=1/d;
		printf("d=%d,e=%lf",d,e);
	}
	printf("%lf",e);

   return 0;
}

